package com.miao.hong.fang.user.service;

import java.util.List;

import com.miao.hong.fang.user.UserAccessInfoTO;
import com.miao.hong.fang.user.UserTO;

public interface UserService {

	void registerUser(UserTO user) throws Exception;
	
	boolean checkUserId(String userId);
	
	List getUserSubscribed(String userId);
	
	UserTO getUserByLoginName(String loginName);

	UserAccessInfoTO getAccessInfo(String sessionId);
	
	void updateAccessInfo(UserAccessInfoTO to);
	
	void logAccessInfo(String sessionId, String loginName, String ipAddress);
	
	void subscribeCourse(String userID, String courseId);
	
	boolean checkUserCourse(String userID, String courseId);
	
	void cancelSubscribeCourse(String userId, String[] courseIds);
}
